import React, { Component } from "react";

import Person from "./containers/Person";
import Count from "./containers/Count";

export default class App extends Component {
    // react-redux无需手动监控store变化
    // componentDidMount() {
    //     store.subscribe(() => {
    //         this.setState({});
    //     });
    // }

    render() {
        return (
            <div>
                {/* <Count store={store} /> */}
                {/* 在index.js中统一注入store */}
                <Count />
                <hr />
                <Person />
            </div>
        );
    }
}
